<div id="formsuccess" style="display:none">{if $errors.status == "success"}currentPage{/if}</div>
<form id="ChangePassword" name="FormPassword" action="?module=backoffice&action=AjaxContext&href={$href}" method="post" class="nyroModal">
{t assignTo=title}Change the password of user {/t}
    {include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title="$title $user"}
<div id="modalContent">
    <table id="changePasswordTable" class="modalTable">
        {if $errors.status != "success"}
        <tr><td colspan="2"></td></tr>
        <tr>
          <td><label>{t}Current password{/t}* : </label></td>
          <td><input type="password" name="formPassword[oldPassword]" value=""  /></td>
        </tr>
        <tr>
          <td><label>{t}New password{/t}* : </label></td>
          <td><input type="password" name="formPassword[password]" value=""  /></td>
        </tr>
        <tr>
          <td><label>{t}Retype your password{/t}* : </label></td>
          <td><input type="password" name="formPassword[password2]" value=""  /></td>
        </tr>
        {/if}
        {if $errors.info}
        <tr>
            <td colspan="2">{icon name="warning.png"} {$errors.info}</td>
        </tr>
        {/if}
    </table>
</div>
<input type="hidden" name="formPassword[submit]" value="change" />
{t assignTo=footerTitle}Save{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$footerTitle}
</form>
